const express = require("express");
const {receiveUploadedFile} = require("../controllers/fileController")


/* 创建路由器对象 */
const router = express.Router();

/* 定义路由 */
// POST /file/upload
router.post("/upload", async (req, res) => {
    const result = await receiveUploadedFile(req)
    res.json(result)
});

module.exports = router;
